#用餐巾数据创建字典
person3 = {
    'name':'Ford Prefect',
    'Gender':'Male',
    'Occupation':'Researcher',
    'Home Planet':'Betelgeuse Seven'
}

vowels = ['a','e','i','o','u']
word = input("Provide a word to search for vowels:")
found = {} #创建空字典
found['a'] = 0
found['e'] = 0
found['i'] = 0
found['o'] = 0
found['u'] = 0 #初始化数值
for letter in word:
    if letter in vowels:
        found[letter]+=1 #按指示值增1
        for k,v in sorted(found.items()): #需提供两个变量
            print(k,'was found',v,'time(s).')

#vowels6
vowels = ['a','e','i','o','u']
word = input("Provide a word to search for vowels:")
found = {} #创建空字典
for letter in word:
    if letter in vowels:
        found.setdefault(letter,0)
        found[letter]+=1 #按指示值增1
        for k,v in sorted(found.items()): #需提供两个变量
            print(k,'was found',v,'time(s).')

#vowels7
vowels = set('aeiou')
word = input("Provide a word to search for vowels:")
found = vowels.intersection(set(word))
for vowel in found:
    print(vowel)

